package tech_web.yml_to_data;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:my_yml.yaml")
public class MyYml {
    @Value("a")
    private int age;
    @Value("n")
    private String name;
}
